package cn.test.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author:ggj
 * @Date:2020/04/07/21:08
 * @Description:
 */
@Table(name = "activity")
public class Activity {
    @Column(name = "id")
    public Integer id;
    @Column(name = "typeId")
    public Integer typeId;
    @Column(name = "startTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date startTime;
    @Column(name = "time")
    public Integer time;
    @Column(name = "place")
    public String place;
    @Column(name = "humanNum")
    public Integer humanNum;
    @Column(name = "remark")
    public String remark;

    public Activity() {
    }

    public Activity(Integer id, Integer typeId, Date startTime, Integer time, String place, Integer humanNum, String remark) {
        this.id = id;
        this.typeId = typeId;
        this.startTime = startTime;
        this.time = time;
        this.place = place;
        this.humanNum = humanNum;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getHumanNum() {
        return humanNum;
    }

    public void setHumanNum(Integer humanNum) {
        this.humanNum = humanNum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", typeId=" + typeId +
                ", startTime=" + startTime +
                ", time=" + time +
                ", place='" + place + '\'' +
                ", humanNum=" + humanNum +
                ", remark='" + remark + '\'' +
                '}';
    }
}
